Optimal. Leaf size=110 \[ -\frac{2 \sqrt{\frac{\sqrt{-c} (f+g x)}{\sqrt{-c} f+g}} \Pi \left (\frac{2 e}{\sqrt{-c} d+e};\sin ^{-1}\left (\frac{\sqrt{1-\sqrt{-c} x}}{\sqrt{2}}\right )|\frac{2 g}{\sqrt{-c} f+g}\right )}{\left (\sqrt{-c} d+e\right ) \sqrt{f+g x}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.304273, antiderivative size = 110, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {932, 168, 538, 537} \[ -\frac{2 \sqrt{\frac{\sqrt{-c} (f+g x)}{\sqrt{-c} f+g}} \Pi \left (\frac{2 e}{\sqrt{-c} d+e};\sin ^{-1}\left (\frac{\sqrt{1-\sqrt{-c} x}}{\sqrt{2}}\right )|\frac{2 g}{\sqrt{-c} f+g}\right )}{\left (\sqrt{-c} d+e\right ) \sqrt{f+g x}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 932
Rule 168
Rule 538
Rule 537
Rubi steps
\begin{align*} \int \frac{1}{(d+e x) \sqrt{f+g x} \sqrt{1+c x^2}} \, dx &=\int \frac{1}{\sqrt{1-\sqrt{-c} x} \sqrt{1+\sqrt{-c} x} (d+e x) \sqrt{f+g x}} \, dx\\ &=-\left (2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{2-x^2} \left (\sqrt{-c} d+e-e x^2\right ) \sqrt{f+\frac{g}{\sqrt{-c}}-\frac{g x^2}{\sqrt{-c}}}} \, dx,x,\sqrt{1-\sqrt{-c} x}\right )\right )\\ &=-\frac{\left (2 \sqrt{1+\frac{g \left (-1+\sqrt{-c} x\right )}{\sqrt{-c} f+g}}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{2-x^2} \left (\sqrt{-c} d+e-e x^2\right ) \sqrt{1-\frac{g x^2}{\sqrt{-c} \left (f+\frac{g}{\sqrt{-c}}\right )}}} \, dx,x,\sqrt{1-\sqrt{-c} x}\right )}{\sqrt{f+g x}}\\ &=-\frac{2 \sqrt{1-\frac{g \left (1-\sqrt{-c} x\right )}{\sqrt{-c} f+g}} \Pi \left (\frac{2 e}{\sqrt{-c} d+e};\sin ^{-1}\left (\frac{\sqrt{1-\sqrt{-c} x}}{\sqrt{2}}\right )|\frac{2 g}{\sqrt{-c} f+g}\right )}{\left (\sqrt{-c} d+e\right ) \sqrt{f+g x}}\\ \end{align*}
Mathematica [C] time = 0.902458, size = 261, normalized size = 2.37 \[ -\frac{2 i (f+g x) \sqrt{\frac{g \left (x+\frac{i}{\sqrt{c}}\right )}{f+g x}} \sqrt{-\frac{-g x+\frac{i g}{\sqrt{c}}}{f+g x}} \left (\text{EllipticF}\left (i \sinh ^{-1}\left (\frac{\sqrt{-f-\frac{i g}{\sqrt{c}}}}{\sqrt{f+g x}}\right ),\frac{\sqrt{c} f-i g}{\sqrt{c} f+i g}\right )-\Pi \left (\frac{\sqrt{c} (e f-d g)}{e \left (\sqrt{c} f+i g\right )};i \sinh ^{-1}\left (\frac{\sqrt{-f-\frac{i g}{\sqrt{c}}}}{\sqrt{f+g x}}\right )|\frac{\sqrt{c} f-i g}{\sqrt{c} f+i g}\right )\right )}{\sqrt{c x^2+1} \sqrt{-f-\frac{i g}{\sqrt{c}}} (e f-d g)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.342, size = 215, normalized size = 2. \begin{align*} 2\,{\frac{ \left ( g+f\sqrt{-c} \right ) \sqrt{c{x}^{2}+1}\sqrt{gx+f}}{\sqrt{-c} \left ( dg-ef \right ) \left ( cg{x}^{3}+cf{x}^{2}+gx+f \right ) }{\it EllipticPi} \left ( \sqrt{{\frac{ \left ( gx+f \right ) \sqrt{-c}}{g+f\sqrt{-c}}}},-{\frac{e \left ( g+f\sqrt{-c} \right ) }{\sqrt{-c} \left ( dg-ef \right ) }},\sqrt{{\frac{g+f\sqrt{-c}}{f\sqrt{-c}-g}}} \right ) \sqrt{-{\frac{ \left ( -1+x\sqrt{-c} \right ) g}{g+f\sqrt{-c}}}}\sqrt{-{\frac{ \left ( x\sqrt{-c}+1 \right ) g}{f\sqrt{-c}-g}}}\sqrt{{\frac{ \left ( gx+f \right ) \sqrt{-c}}{g+f\sqrt{-c}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c x^{2} + 1}{\left (e x + d\right )} \sqrt{g x + f}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (d + e x\right ) \sqrt{f + g x} \sqrt{c x^{2} + 1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{c x^{2} + 1}{\left (e x + d\right )} \sqrt{g x + f}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]